package cn.itcast.vo;

import lombok.Getter;
import lombok.Setter;

/**
 * @AuThor：zengxing
 * @DATE:2020/12/26 15:40  250
 */
public class InvoiceVo {
    private String productNo;
    private String type;
    private Integer cnumber;
    private double price;
    private double amount;

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getCnumber() {
        return cnumber;
    }

    public void setCnumber(Integer cnumber) {
        this.cnumber = cnumber;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getAmount() {
            return this.getPrice()*this.getCnumber();
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }
}
